package day1901;

import java.util.HashMap;
import java.util.Scanner;

public class mapjihe {
    public static void main(String[] args) {
        HashMap<Character,Integer> a = new HashMap<>();
        String b = new Scanner(System.in).nextLine();
        for(int i =0;i<b.length();i++){
            Character w = b.charAt(i);
            if(a.containsKey(w))
                a.put(w,a.get(w)+1);
            else
                a.put(w,1);
        }
        System.out.println(a);

    }
}
